<input type="hidden" name="{$varname|escape}" value="" id="spaw2__container__{$editor_varname}" />
<div class="handler__cntForm__before_submit_function" function="widget__spaw2__beforeSubmit__{$editor_varname}()">{$editor}</div>

<script language="JavaScript"><!--
function widget__spaw2__beforeSubmit__{$editor_varname}()
{ldelim}
    var EditorObject = {$editor_varname}_obj;

    $('#spaw2__container__{$editor_varname}').attr(
        'value',
        EditorObject.getPageHtml( EditorObject.getPage('{$editor_varname}') )
    );

    return true;
{rdelim}
//--></script>
